<?php
namespace Home\Model;
use TinyPHP\DB\Model;
/*
 *
 * index
 * Created by tiny
 * User: tiny
 * Date: 16/06/23
 * E-mail: mountaingiant@163.com
 *
 * */
class IndexModel extends Model{
    public function getVersion(){
        $sql = 'SELECT VERSION() as `version`';
        $result = $this->query($sql);
        $result = $this->fetchAssoc($result);
        return $result;
    }
}
